{% extends "blog/base.html" %} 
{% block content %}
<style>
    body {
        font-family: "Roboto", sans-serif;
        font-size: 18px;
        background-color: #fdfdfd;
    }
    
    .card {
        box-shadow: 0 16px 48px #E3E7EB;
    }
</style>

<div class="container">
    <div class="row">
        <!-- Blog Entries Column -->
        <div class="col-md-8 mt-3 left">
            {% for post in post_list %}
            <div class="card mb-4">
                <div class="card-body">
                    <h2 class="card-title">{{ post.title }}</h2>
                    <p class="card-text text-muted h6">{{ post.author }} | {{ post.created_time}} </p>
                    <p class="card-text">{{post.excerpt}}</p>
                    <a href="{% url 'blog:post_detail' post.id  %}" class="btn btn-primary">Read More &rarr;</a>
                </div>
            </div>
            {% empty %}
                <div class="card mb-4">
                    <div class="card-body">
                        暂时还没有发布的文章!
                    </div>
                </div>
            {% endfor %}
        </div>
        {% block sidebar %} {% include 'blog/sidebar.html' %} {% endblock sidebar %}
    </div>
</div>
{%endblock%}